package com.liqi.monitor.mapper;


import com.liqi.monitor.domain.DvHeartbeat;
import com.liqi.monitor.domain.dto.HeartBeatDto;

import org.springframework.stereotype.Component;

/**
 * 心跳Mapper接口
 *
 * @author zhanghan
 * @date 2022-10-17
 */
@Component
public interface DvHeartbeatMapper {

    public DvHeartbeat selectDvHeartbeatByDeviceId(String deviceId);

    /**
     * 新增心跳记录
     *
     * @param dvDeploymentSystem 心跳记录
     * @return 结果
     */
    public int insertDvHeartbeat(DvHeartbeat dvHeartbeat);

    /**
     * 修改心跳记录
     *
     * @param dvDeploymentSystem 心跳记录
     * @return 结果
     */
    public int updateDvHeartbeat(DvHeartbeat dvHeartbeat);
}
